<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Global</title>
</head>
<body>

<script>
    //全局对象不需要创建对象，可直接使用其方法
    var s="我爱你";
    var s1 = encodeURI(s);
       document.write(s1+"<br>");
       var s2 = decodeURI(s1);
    document.write(s2+"<br>");
    var s3="http://itcast.cn";
        var s4 = encodeURIComponent(s3);
    document.write(s4+"<br>");
     var s5="1234acb";
       var number = parseInt(s5);
       document.write(number);
       var s6=NaN;
       document.write(isNaN(s6)+"<br>");
       var s7="alert(123)";
         eval(s7);



</script>
</body>
</html>